import { post } from './axios';
import {
  movieInfoURL,
  movieUploadURL,
  
} from './url';
import { IMovieResInfo, IMovieUploadParam,IMovieUploadResInfo,IMovieGetParam  } from '@typings/movie';

/** 电影信息上传 */
export function movieUpload(params: IMovieUploadParam) {
    return post<IMovieUploadParam, IMovieUploadResInfo | null>(movieUploadURL, params);
  }
/** 电影信息获取 */
export function movieInfo(params: IMovieGetParam) {
    return post<IMovieGetParam, IMovieResInfo | null>(movieInfoURL, params);
  }